import {
  GOODS,
  GOODS_COLUMNS,
  deviceLists,
  detectionLists,
  warningLists,
  terminalLists,
  terminalTypes,
  detials,
  submits,
  upgradeLists,
  dataLists,
  screens,
  earlyWarnings,
  monitorLists,
  videoLists,
  ruleLists,
  organizationLists,
  rolesLists,userLists,
  devices,
  historys,
  dels
} from './api'
import {METHOD, request} from '@/utils/request'

export async function goodsList(params) {
  return request(GOODS, METHOD.GET, params)
}

export async function goodsColumns() {
  return request(GOODS_COLUMNS, METHOD.GET)
}
export async function deviceList(params) {
  return request(deviceLists, METHOD.GET,params)
}
export async function detectionList(params) {
  return request(detectionLists, METHOD.GET,params)
}
export async function videoList(params) {
  return request(videoLists, METHOD.GET,params)
}
export async function ruleList(params) {
  return request(ruleLists, METHOD.GET,params)
}
export async function warningList(params) {
  return request(warningLists, METHOD.GET,params)
}
export async function earlyWarning(params) {
  return request(earlyWarnings, METHOD.GET,params)
}
export async function terminalList(params) {
  return request(terminalLists, METHOD.GET,params)
}
export async function terminalType(params) {
  return request(terminalTypes, METHOD.GET,params)
}
export async function getDetials(params) {
  return request(detials, METHOD.GET, params)
}
export async function upgradeList(params) {
  return request(upgradeLists, METHOD.GET, params)
}
export async function dataList(params) {
  return request(dataLists, METHOD.GET, params)
}
export async function monitorList(params) {
  return request(monitorLists, METHOD.GET, params)
}
export async function organizationList(params) {
  return request(organizationLists, METHOD.GET, params)
}
export async function rolesList(params) {
  return request(rolesLists, METHOD.GET, params)
}
export async function history(params) {
  return request(historys, METHOD.GET, params)
}
export async function userList(params) {
  return request(userLists, METHOD.GET, params)
}
export async function screen(params) {
  return request(screens, METHOD.GET, params)
}
export async function deviceDetials(params) {
  return request(devices, METHOD.GET, params)
}
export async function submitpost(data) {
  return request(submits, METHOD.POST, data)
}
export async function delpost(data) {
  return request(dels, METHOD.POST, data)
}
export default {history,deviceDetials,userList,rolesList,organizationList,ruleList,videoList,monitorList,earlyWarning,screen,dataList,goodsList, goodsColumns,deviceList,detectionList,warningList,terminalList,terminalType,getDetials,submitpost,delpost,upgradeList}
